using System;
using System.Collections.Generic;
using System.Text;

namespace Winsmarts.PPI.Common
{
    public static class Trace
    {
        public static void Write(string message)
        {
            Console.Write(message);
        }

        public static void WriteLine(string message)
        {
            Write(message);
            Write("\n");
        }

        public static void WriteLine(string message, bool isError)
        {
            if (isError) Write("** ERR:");
            WriteLine(message);
        }

        public static void PrintHelp()
        {
            Trace.WriteLine(
                @"
=================================================
Profile Property Manager - Help
=================================================

Usage: ProfilePropertyMgr -url <UrlToWeb> -filename <FileName> -import
       ProfilePropertyMgr -url <UrlToWeb> -filename <FileName> -export

       or 

       ProfilePropertyMgr -help

*********** Used For ***********
Export Profile properties from SharePoint to an XML file.
Import Profile properties from an XML file to SharePoint.

*********** Required Parameters are: ***********
-url <UrlToWeb>
-file <FileName.xml>

*********** XML File structure: ***********
<Properties>
  <Property>
    <PropertyInfo Name="" Type="" Data=""/>
    <PropertyInfo ..>
    ...
  </Property>
  <Property>...</Property>
  ...
</Properties>

*********** Sample usage: ***********
ProfilePropertyMgr -url http://moss2007 -filename output.xml -export
ProfilePropertyMgr -url http://moss2007 -filename input.xml -import
                ") ;
        }
    }
}
